//
//  main.m
//  homework第四部分
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Movie.h"
#import "Music.h"
#import "Opera.h"
#import "Acrobatics.h"
#import "Drama.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
#if 0
        //第十六个类 电影类
        Movie *mov1 = [[Movie alloc] init];
        [mov1 setName:@"钢铁侠3"];
        [mov1 setBrand:@"漫威影业"];
        [mov1 setLength:121];
        [mov1 setPrice:35];
        [mov1 myPrint];
        
        Movie *mov2 = [[Movie alloc]initWithName:@"复仇者联盟2" withBrand:@"漫威影业" withLength:121 withPrice:33];
        [mov2 myPrint];
        
#endif
        
#if 0
        //第十七个类 音乐类
        Music *mus1 = [[Music alloc] init];
        [mus1 setName:@"warriors"];
        [mus1 setBrand:@"梦龙"];
        [mus1 setLength:4];
        [mus1 setPrice:10];
        [mus1 myPrint];
        
        Music *mus2 = [[Music alloc] initWithName:@"Flower dance" withBrand:@"OKAWARI" withLength:3 withPrice:5];
        [mus2 myPrint];
      
#endif
        
#if 0
        //第十八个类 歌剧类
        Opera *ope1 = [[Opera alloc] init];
        [ope1 setName:@"浮士德"];
        [ope1 setBrand:@"歌德"];
        [ope1 setLength:200];
        [ope1 setPrice:580];
        [ope1 myPrint];
        
        Opera *ope2 = [[Opera alloc] initWithName:@"茶花女" withBrand:@"小仲马" withLength:200 withPrice:780];
        [ope2 myPrint];
        
        
#endif
        
#if 0
        //第十九个类 杂技类
        Acrobatics *acr1 = [[Acrobatics alloc] init];
        [acr1 setName:@"狮子钻火圈"];
        [acr1 setBrand:@"NX杂技团"];
        [acr1 setLength:20];
        [acr1 setPrice:130];
        [acr1 myPrint];
        
        Acrobatics *acr2 = [[Acrobatics alloc] initWithName:@"走钢丝" withBrand:@"NX杂技团" withLength:10 withPrice:50];
        [acr2 myPrint];
    
#endif
        
#if 1
        //第二十个类 话剧类
        Drama *dra1 = [[Drama alloc] init];
        [dra1 setName:@"黑奴吁天录"];
        [dra1 setBrand:@"春柳社"];
        [dra1 setLength:60];
        [dra1 setPrice:12];
        [dra1 myPrint];
        
        Drama *dra2 = [[Drama alloc] initWithName:@"哀江南" withBrand:@"刘艺舟" withLength:20 withPrice:5];
        [dra2 myPrint];
#endif
    }
    return 0;
}
